package pl.perseus.interceptor;

import java.util.Map;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class AuthorizationInterceptor extends AbstractInterceptor {

	private static String USER = "user";
	
	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		/*Map<String, Object> session = invocation.getInvocationContext().getSession();
		if(session.containsKey(USER))
			return invocation.invoke();
		return null;*/
		return invocation.invoke();
	}

}
